package com.example.demo.oo.domain.vo;

import lombok.Data;


@Data
public class Nickname {

    private String value;

    public void generate(String mobile) {
        StringBuilder sb = new StringBuilder(mobile);
        value = sb.replace(3, 8, "*****").toString();
    }
}
